package eventbus.events;

import gui.BasePanel;

public class UpdatePanelEvent {
    Class<? extends BasePanel> panelType;

    public UpdatePanelEvent(Class<? extends BasePanel> panelType) {
        this.panelType = panelType;
    }

    public Class<? extends BasePanel> getPanelType() {
        return panelType;
    }

    public static UpdatePanelEvent create(Class<? extends BasePanel> panelType) {
        return new UpdatePanelEvent(panelType);
    }
}
